namespace Crux.Core.Domains.Test;

public class UnitTest1
{
    [Fact]
    public void Test1()
    {
        var testEventHandler = new TestEventHandler();

        var interfaces = testEventHandler.GetType().GetInterfaces();
        var result = interfaces.Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IGenericEventHandler<>));

        var result1 = interfaces.Any(i => i == typeof(IEventHandler));
        Console.Write(result);
    }
}